package com.study.example.gameserver.module.test;

import com.sparrow.rpc.annotation.RpcInterface;
import com.sparrow.rpc.annotation.RpcMethod;
import com.sparrow.rpc.future.RpcFuture;
import com.sparrow.rpc.future.SettableRpcFuture;

import java.util.List;

/**
 * rpc测试接口
 */
@RpcInterface
public interface ITestRpcFacade {

    @RpcMethod
    RpcFuture<String> hello(String str);

    @RpcMethod
    void testVoid(List<String> args);

    @RpcMethod
    RpcFuture<String> testSync();

    @RpcMethod
    RpcFuture<String> testTimeOut();

    @RpcMethod
    SettableRpcFuture<String> testSettable(String str);

}
